package home.bean;

// 数据内容类
import java.io.Serializable;
import java.util.List;

public class Data implements Serializable {
    private static final long serialVersionUID = 1L;
    private List<Carousel> carousels;
    private List<Goods> hotGoodses;
    private List<Goods> newGoodses;
    private List<Goods> recommendGoodses;

    // 构造方法
    public Data() {}

    public Data(List<Carousel> carousels, List<Goods> hotGoodses,
                List<Goods> newGoodses, List<Goods> recommendGoodses) {
        this.carousels = carousels;
        this.hotGoodses = hotGoodses;
        this.newGoodses = newGoodses;
        this.recommendGoodses = recommendGoodses;
    }

    // Getter 和 Setter
    public List<Carousel> getCarousels() { return carousels; }
    public void setCarousels(List<Carousel> carousels) { this.carousels = carousels; }

    public List<Goods> getHotGoodses() { return hotGoodses; }
    public void setHotGoodses(List<Goods> hotGoodses) { this.hotGoodses = hotGoodses; }

    public List<Goods> getNewGoodses() { return newGoodses; }
    public void setNewGoodses(List<Goods> newGoodses) { this.newGoodses = newGoodses; }

    public List<Goods> getRecommendGoodses() { return recommendGoodses; }
    public void setRecommendGoodses(List<Goods> recommendGoodses) { this.recommendGoodses = recommendGoodses; }

    // 重写 toString 方便调试
    @Override
    public String toString() {
        return "Data{" +
                "carousels=" + carousels +
                ", hotGoodses=" + hotGoodses +
                ", newGoodses=" + newGoodses +
                ", recommendGoodses=" + recommendGoodses +
                '}';
    }
}